﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AcademicOrganizationConfiguration : EntityConfiguration<AcademicOrganization>
    {

        public AcademicOrganizationConfiguration()
        {
            Property(ao => ao.AcademicOrganizationID).IsIdentity();
            MapSingleType(u => EntityMap.Row(
               EntityMap.Column(u.AcademicOrganizationID),
               EntityMap.Column(u.Name),
               EntityMap.Column(u.AcademicOrganizationTypeID)
               )).ToTable("AcademicOrganization");

            
        }
    }
}
